import request from '@/utils/request'
import { AxiosPromise } from 'axios';
import { query } from '@/api/dianzhan/types';
// 获取设备统计
export function getEquipment(params:query): AxiosPromise<any> {
    return request({
        url: '/stationBoard/equipmentStatistic',
        method: 'GET',
        params
    })
}

// 获取设备信息
export function getStationState(params:query): AxiosPromise<any> {
    return request({
        url: '/stationBoard/stationState',
        method: 'GET',
        params
    })
}
// 获取电站信息
export function getStationInfo(params:query): AxiosPromise<any> {
    return request({
        url: '/stationBoard/stationInfo',
        method: 'GET',
        params
    })
}
// 获取发电趋势
export function getstationCurve(params:query): AxiosPromise<any> {
    return request({
        url: '/stationBoard/stationCurve',
        method: 'GET',
        params
    })
}

// 获取天气接口
export function getStationWeather(params:query): AxiosPromise<any> {
    return request({
        url: '/stationBoard/stationWeather',
        method: 'GET',
        params
    })
}